package com.wgl.yygh.controller;

import com.wgl.model.vo.order.OrderCountQueryVo;
import com.wgl.order.OrderFeignClient;
import com.wgl.yygh.result.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author wgl
 * @version 1.0.0
 * @ClassName StatisticsController.java
 * @Description TODO
 * @createTime 2022年02月16日 15:57:00
 */
@RestController
@RequestMapping("/admin/statistics")
public class StatisticsController {
    @Resource
    private OrderFeignClient orderFeignClient;

    @GetMapping("/getCountMap")
    public Result getCountMap(OrderCountQueryVo orderCountQueryVo){
        return Result.ok(orderFeignClient.getCountMap(orderCountQueryVo));
    }
}
